package com.drum.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;

//@ServletComponentScan
//@MapperScan("com.drum.demo")//配置mybatis接口包扫描
@MapperScan("com.drum.demo.mapper")
@EntityScan("com.drum.demo.bean")
@SpringBootApplication

public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    /*@Bean
	public ServletRegistrationBean servletRegistrationBean() {
		return new ServletRegistrationBean(new DruidStatViewServlet(), "/druid/*");// ServletName默认值为首字母小写，即myServlet
	}*/

}
